<?php
if (!defined('__ACCESS__'))
    exit;
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)">
        <meta name="dcterms.created" content="Mon, 28 Jan 2013 12:06:44 GMT">
        <meta name="description" content="">
        <meta name="keywords" content="">
		<meta http-equiv="Page-Enter" CONTENT="blendTrans(Duration=4.0)">
        <title><?php echo $this->name;?></title>
        <!--[if IE]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <link href="<?php $this->path('css/custom.css');?>" rel="stylesheet" media="all" />
        <link href="<?php $this->path('css/base.css');?>" rel="stylesheet" media="all" />
        <link href="<?php $this->path('css/jquery-ui-1.10.3.custom.min.css');?>" rel="stylesheet" media="all" />
        <link href="<?php $this->path('css/breeze.css');?>" rel="stylesheet" media="all" />
		<link href="<?php $this->path('css/jquery.toastmessage.css');?>" rel="stylesheet" media="all" />
        <link rel="shortcut icon" type="image/gif" href="<?php $this->path('img/favicon.ico');?>">
        <script type="text/javascript" src="<?php $this->path('js/jquery-1.8.2.min.js');?>"></script>
        <script type="text/javascript" src="<?php $this->path('js/jquery-1.8.js');?>"></script>
        <script type="text/javascript" src="<?php $this->path('js/queryLoader.js');?>"></script>
		<script type="text/javascript" src="<?php $this->path('js/modernizr.custom.js');?>"></script>
		<script type="text/javascript" src="<?php $this->path('js/jquery.cookie.js');?>"></script>
		<script type="text/javascript" src="<?php $this->path('js/jquery.toastmessage.js');?>"></script>
		<script type="text/javascript" src="<?php $this->path('js/jquery.playSound.js');?>"></script>
		<script type="text/javascript" src="<?php $this->path('js/to.word.js');?>"></script>
    </head>
    <body>
<?php
if (isset($_COOKIE['prog_start']) && $_COOKIE['prog_start'] > 0)
	echo '<div class="QAmt" id="prh" style="position: absolute;top: 0px;left: 0px;width:' . $_COOKIE['prog_start'] . '%"></div>';
?>
		<div class="container_12" id="header-top">
			<div id="top">
				<div class="grid_3">
					<div class="phone_top">
						<span>Contact Us +639189650271</span>
					</div><!-- .phone_top -->
				</div><!-- .grid_3 -->

				<div class="grid_6">
					<div class="welcome">
		
						<?php if ( $login->isLoggedIn() ){ ?>
						Welcome, <a href="#" title="Manage Account"><?php echo $login->userid; ?></a>.
						<?php } else { ?>
						Welcome visitor you can <a href="?module=login">login</a> or <a href="?module=register">create an account</a>.
						<?php } ?>
					</div><!-- .welcome -->
				</div><!-- .grid_6 -->
			</div><!-- #top -->

			<div class="clear"></div>
			<header id="branding">
				<div class="grid_3">
					<hgroup style="background-color:#fff;">
						<h1 id="site_logo"><a href="<?php echo Config::$url; ?>" title=""><img src="<?php $this->path('img/logo.png');?>" alt="Online Store Theme Logo"></a></h1>
						<h2 id="site_description">Your Online Store For Your Daily Needs!</h2>
					</hgroup>
				</div><!-- .grid_3 -->

				<div class="grid_3" style="<?php if ( !$login->isLoggedIn() ){ ?>width: 463px;<?php } ?>" >
					<form class="search" style="<?php if ( !$login->isLoggedIn() ){ ?>margin: 16px 0 0 265px;<?php } ?>" >
						<input type="text" name="search" class="entry_form" value="" placeholder="Search product here...">
					</form>
				</div><!-- .grid_3 -->

				<div class="grid_6" style="<?php if( !$login->isLoggedIn() ){ ?>width: 150px;<?php } ?>">
					<?php if( $login->isLoggedIn() ){ ?>
					<ul id="cart_nav">
						<li>
							<a class="cart_li" href="/shopping_cart.html">Cart <span>$0.00</span></a>
							<ul class="cart_cont">
								<li class="no_border"><p>Recently added item(s)</p></li>
								<li>
									<a href="/product_page.html" class="prev_cart"><div class="cart_vert"><img src="<?php $this->path('img/cart_img.png');?>" alt="" title=""></div></a>
									<div class="cont_cart">
										<h4>Caldrea Linen and Room Spray</h4>
										<div class="price">1 x $399.00</div>
									</div>
									<a title="close" class="close" href="#"></a>
									<div class="clear"></div>
								</li>
								<li>
									<a href="/product_page.html" class="prev_cart"><div class="cart_vert"><img src="<?php $this->path('img/produkt_slid1.png');?>" alt="" title=""></a>
									<div class="cont_cart">
										<h4>Caldrea Linen and Room Spray</h4>
										<div class="price">1 x $399.00</div>
									</div>
									<a title="close" class="close" href="#"></a>
									<div class="clear"></div>
								</li>
								<li class="no_border">
									<a href="/shopping_cart.html" class="view_cart">View shopping cart</a>
									<a href="/checkout.html" class="checkout">Procced to Checkout</a>
								</li>
							</ul>
						</li>
					</ul>
		  			<?php } ?>
					<nav class="private">
						<ul>
							<?php if( $login->isLoggedIn() ){ ?>
							<li><a href="#">My Account</a></li>
							<li class="separator">|</li>
							<?php if( $this->isNormal($login) ){ ?>
							<li><a href="#">My Wishlist</a></li>
							<?php }else if($login->type>1){ ?>	
							<li><a href="?module=pos">Dashboard</a></li>
							<?php } ?>	
							<li class="separator">|</li>
							<li><a href="#" class="show_notif_list">Notification<span class="ui-corner-all ui-text-center ui-notif-count" style="">1</span></a></li>
							<li class="separator">|</li>
							<li><a href="?module=login&action=logout">Log Out</a></li>
							<?php }else{ ?>	
							<li><a href="?module=login">Log In</a></li>
							<li class="separator">|</li>
							<li><a href="?module=register">Sign Up</a></li>
							<?php } ?>	
						</ul>
					</nav><!-- .private -->
				</div><!-- .grid_6 -->
			</header><!-- #branding -->
		</div>
		<div class="clear"></div>
		<?php $this->render2(CP_BAS . 'nav.php'); ?>